using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace BaseData.Models.Mapping
{
    public class Web_Base_News_Info_ExtMap : EntityTypeConfiguration<Web_Base_News_Info_Ext>
    {
        public Web_Base_News_Info_ExtMap()
        {
            // Primary Key
            this.HasKey(t => t.PkId);

            // Properties
            // Table & Column Mappings
            this.ToTable("Web_Base_News_Info_Ext");
            this.Property(t => t.PkId).HasColumnName("PkId");
            this.Property(t => t.NodeId).HasColumnName("NodeId");
            this.Property(t => t.CreateId).HasColumnName("CreateId");
            this.Property(t => t.EditorId).HasColumnName("EditorId");
            this.Property(t => t.UpdateId).HasColumnName("UpdateId");
            this.Property(t => t.PassId).HasColumnName("PassId");
            this.Property(t => t.OrgId).HasColumnName("OrgId");
            this.Property(t => t.OrgName).HasColumnName("OrgName");
            this.Property(t => t.AuthorId).HasColumnName("AuthorId");
            this.Property(t => t.AuthorName).HasColumnName("AuthorName");
            this.Property(t => t.SourceTypeId).HasColumnName("SourceTypeId");
            this.Property(t => t.SourceTypeName).HasColumnName("SourceTypeName");
            this.Property(t => t.SourceId).HasColumnName("SourceId");
            this.Property(t => t.SourceName).HasColumnName("SourceName");
            this.Property(t => t.SourceTitle).HasColumnName("SourceTitle");
            this.Property(t => t.SourceUrl).HasColumnName("SourceUrl");
            this.Property(t => t.Copyrights).HasColumnName("Copyrights");
            this.Property(t => t.Memo).HasColumnName("Memo");
            this.Property(t => t.Message).HasColumnName("Message");
            this.Property(t => t.Remark).HasColumnName("Remark");
            this.Property(t => t.ValueInt1).HasColumnName("ValueInt1");
            this.Property(t => t.ValueInt2).HasColumnName("ValueInt2");
            this.Property(t => t.ValueInt3).HasColumnName("ValueInt3");
            this.Property(t => t.ValueFloat1).HasColumnName("ValueFloat1");
            this.Property(t => t.ValueFloat2).HasColumnName("ValueFloat2");
            this.Property(t => t.ValueFloat3).HasColumnName("ValueFloat3");
            this.Property(t => t.ValueString1).HasColumnName("ValueString1");
            this.Property(t => t.ValueString2).HasColumnName("ValueString2");
            this.Property(t => t.ValueString3).HasColumnName("ValueString3");
            this.Property(t => t.ValueString4).HasColumnName("ValueString4");
            this.Property(t => t.ValueString5).HasColumnName("ValueString5");
            this.Property(t => t.ValueString6).HasColumnName("ValueString6");
            this.Property(t => t.ValueDateTime1).HasColumnName("ValueDateTime1");
            this.Property(t => t.ValueDateTime2).HasColumnName("ValueDateTime2");
            this.Property(t => t.ValueDateTime3).HasColumnName("ValueDateTime3");
        }
    }
}
